# !/usr/bin python3
# encoding: utf-8 -*-
# @file     : dubbo_client.py
# @author   : 沙陌 Matongxue_2
# @Time     : 2023/8/10 21:55
# @Copyright: 北京码同学
from common.file_load import load_yaml_file
from paths_manager import dubbo_yaml


class BaseDubbo:

    def __init__(self):
        dubbo_info = load_yaml_file(dubbo_yaml)
        self.host = dubbo_info['host']
        self.dubbo_version = dubbo_info['dubbo_version']
        self.version = dubbo_info['version']

    def send(self,method_name,*args):
        return self.service.call(method_name,args=args)